home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
comm
/
mpmod160.zip
/
TELEMATE.ZIP
/
ZMODUP.SCR
< prev
Wrap
Text File
|
1993-01-01
|
3KB
|
66 lines
;
; Telemate Script for the receiving of files.
;
; The "-w" switch tells MPModem to "warble" after it has finished (to wake
; up those sleepy operators :->) but is only available to REGISTERED users
; (so register).
;
;
;Procedure to convert a string of space characters to underline characters
;
PROCEDURE Convert STRING line
INTEGER rr
WHILE rr <> 0
STRPOS line," ",rr
STRSET line,"_",rr,1
rr = rr + 1
ENDWHILE
ENDPROC
STRING param,baud2,port2,dummy,updir,boardname,files,inputitem
INTEGER stat, baud1, port1, xx
QUERY Baud,baud1
QUERY Port,port1
QUERY Board,boardname
QUERY DirUpload,updir
print "What files to send: " ; Prompt the user for the filenames
INPUT inputitem ; Get the answer from them
files = "" ; Set up a null string
CONCAT files,inputitem ; Removes the backspace. Odd!!!
CLEAR KEY ; Clear the key system
IF files = "" ; Did the user enter nothing
print "Script aborted!" ; Yes, tell them and
STOP ; abort it.
ENDIF
xx = 0;
STRPOS files,"\",xx ; Check for a pathname in the string
IF xx = 0 ; Was there a path in there?
CONCAT updir, files ; No, so append the files to the upload dir.
ELSE
updir = files ; Yes, so copy the path to the upload dir.
ENDIF
param = "mpmodem -sz -c -f -l -w -v -b" ; Set up the parameter list.
ITOA baud1,baud2 ; Convert integer baud rate to a string
ITOA port1,port2 ; Convert integer port rate to a string
CONCAT param, baud2 ; Add the baud rate to the parameter list
CONCAT param, " -p" ; Set up the switch for the port number
CONCAT param, port2 ; Add the port rate to the parameter list
CONCAT param, " -v" ; Set up the switch for the board name
IF NOT CONNECTED ; Are we connected to a BBS (or whatever)
boardname = "Offline/Direct_Connect" ; No, so put a dummy name in
ELSE
Convert boardname ; Yes, so grab and convert the name
ENDIF
CONCAT param,boardname ; Add the boardname to the parameter list
CONCAT param," -t0 " ; Put a dummy time in.
CONCAT param, updir
DOS param ; Run the program.